//
//  TLPopMenu.h
//  Books
//
//  Created by tao故乡的云 on 2017/3/17.
//  Copyright © 2017年 故乡的云. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TLPopMenuItem.h"

@class TLPopMenu;
@protocol TLPopMenDelegate <NSObject>
@required
- (void)popMenu:( TLPopMenu * _Nonnull )popMenu didSelectItemAtIndex:(NSInteger)index;
- (void)popMenuDismiss:( TLPopMenu * _Nonnull )popMenu;

@end

@interface TLPopMenu : UIView 
/** delegate */
@property (nonatomic, weak, nullable) id <TLPopMenDelegate> delegate;
@property (nonatomic, strong, nonnull) NSArray<TLPopMenuItem *> *items;
@property (nonatomic, getter=isShow) bool show;

@end
